{extend name="base" /}
{block name="body"}
<div class="layui-body">
    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class=""><a href="{:url('admin/luntan_article/index')}">文章管理</a></li>
            <li class="layui-this">文章详情</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
               
               <div class="layui-collapse" lay-accordion="">
                <div class="layui-colla-item">
                <h2 class="layui-colla-title">
                  <i class="layui-icon" style="font-size: 30px; color: #1E9FFF;">&#xe68e;</i> 
                  楼主&nbsp;&nbsp;&nbsp;&nbsp;
                  <i class="layui-icon" style="font-size: 30px; color: #1E9FFF;">&#xe612;</i>
                  用户名:{$articlelist.username}
                </h2>
                <div class="layui-colla-content layui-show">
                   <i class="layui-icon" style="font-size: 30px; color: #1E9FFF;">&#xe626;</i>
                    标题:{$articlelist.title}
                </div> 
                <div class="layui-colla-content layui-show">
                   <i class="layui-icon" style="font-size: 30px; color: #1E9FFF;">&#xe626;</i>
                    内容:{$articlelist.content}
                </div> 
                <div class="layui-colla-content layui-show">  

                  {foreach name="replyinfo" item="vo"}
                  <div class="layui-collapse" lay-accordion="">
                    <div class="layui-colla-item">
                      <h2 class="layui-colla-title">
                        <i class="layui-icon" style="font-size: 30px; color: #1E9FFF;">&#xe68e;</i> 
                        {$vo['reply']['louceng']}楼&nbsp;&nbsp;&nbsp;&nbsp;
                        <i class="layui-icon" style="font-size: 30px; color: #1E9FFF;">&#xe612;</i>
                        用户名:{$userlist[$vo['reply']['uid']]}
                    </h2>
                      <div class="layui-colla-content layui-show">
                          <span style="margin-left:6%">内容:{$vo['reply']['content']}</span>  
                      </div>
                      {foreach name="$vo['after']" item="val"}
                      <div class="layui-colla-content layui-show">
                        <div class="layui-collapse" lay-accordion="">
                          <div class="layui-colla-item">
                            <h2 class="layui-colla-title">
                              <i class="layui-icon" style="font-size: 30px; color: #1E9FFF;">&#xe612;</i>
                              用户名:{$userlist[$val['uid']]}
                            </h2>
                            <div class="layui-colla-content layui-show">
                              <span style="margin-left:6%">内容:{$val['content']}</span>
                            </div>
                          </div>
                        </div>
                      </div>
                       {/foreach}

                    </div>
                  </div>
                 {/foreach} 


                </div>
              </div>
            </div>
             
            <br>
          
<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->


            </div>
        </div>
    </div>
</div>
{/block}
{block name="script"}
<script>
layui.use(['element', 'layer'], function(){
  var element = layui.element;
  var layer = layui.layer;
  
  //监听折叠
  element.on('collapse(test)', function(data){
    layer.msg('展开状态：'+ data.show);
  });
});
</script>
{/block}